<template>
    <mt-swipe :auto="4000">
        <mt-swipe-item v-for="item in carouselList" :v-key="item.url">
            <img :src="item.img" alt="" :class="{full:isFull}">
        </mt-swipe-item>
    </mt-swipe>
</template>

<script>
    export default {
        name: "Swipe",
        props:['carouselList','isFull'] //每个轮播图的值是不一样的，所以其循环的值需要由父组件进行传递
    }
</script>

<style scoped lang="less">
    .mint-swipe {
        height: 200px;
        text-align: center;

        .mint-swipe-item {
            img {
                height: 100%;
            }
        }
    }

    .full{
        width: 100%;
    }
</style>